//
//  SVProgressHUD+BSZProgressHUD.m
//  BuSuanZi
//
//  Created by staff on 3/15/25.
//

#import "SVProgressHUD+BSZProgressHUD.h"

@implementation SVProgressHUD (BSZProgressHUD)

//初始化元素
+ (void)stepElements{
    [self setDefaultMaskType:SVProgressHUDMaskTypeClear];
    [self setBackgroundColor:BlackColor];
    [self setForegroundColor:WhiteColor];
    [self setMinimumDismissTimeInterval:1.5];
    [self setMaximumDismissTimeInterval:1.5];
}

//没有文字加载
+ (void)showWaitStatus{
    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
    [SVProgressHUD show];
}

//加载消失
+ (void)dismissHUD{
    [SVProgressHUD dismiss];
}

//正在加载
+ (void)loadWaitStatus:(NSString *)status{
    [self stepElements];
    [SVProgressHUD showWithStatus:status];
}
//加载成功
+ (void)loadSuccessStatus:(NSString *)status{
    [self stepElements];
    [SVProgressHUD showSuccessWithStatus:status];
}
//加载失败
+ (void)loadErrorStatus:(NSString *)status{
    [self stepElements];
    [SVProgressHUD showImage:[UIImage imageNamed:@""] status:status];
}
//加载提醒
+ (void)loadAlertStatus:(NSString *)status{
    [self stepElements];
    [SVProgressHUD showInfoWithStatus:status];
}

//加载可交互提示
+ (void)loadNotMaskLayerStatus:(NSString *)status{
    [self stepElements];
    [self setDefaultMaskType:SVProgressHUDMaskTypeNone];
    [SVProgressHUD showImage:[UIImage imageNamed:@""] status:status];
}

@end
